package cn.cvzhanshi.oauth.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.provider.token.TokenStore;
import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore;

/**
 * @author cVzhanshi
 * @create 2022-10-25 18:18
 */
@Configuration
public class TokenConfig {
    // 令牌的存储策略
    @Bean
    public TokenStore tokenStore(){
        return new InMemoryTokenStore();
    }
}
